package basics.ifelse;

/**
 *
 * @author peng
 */
public class IfElse {
    
    
    public static void main(String args[])
    {
        int a=5;//Declare an integer, and assigns a value.
        
        if(a>10)
        {
            System.out.println("This will never gets printed");
        }
        else
        {
            System.out.println("a=5, 5 is not greater than 10.");
        }
        
        
        if(a>5)
        {
            System.out.println("This will never gets printed");
        }
        else if(a<5)
        {
            System.out.println("This will never gets printed");
        }
        else
        {
            System.out.println("Correct a is equal to 5.");
        }
    }
    
}
